<?php
ini_set('display_erros', 'On');
error_reporting(E_ALL);
header('Content-Type: text/html; charset=utf-8');

$arr = array(
    'check_app_exists' => array(
        'url' => '/api_internal.php',
        'act' => 'check_app_exists',
        'method' => 'post',
        'params' => array(
			'app_ids' => '613911254,445375097,123',
        ),
    ),
    'add_app_wish' => array(
        'url' => '/api.php',
        'act' => 'add_app_wish',
        'method' => 'post',
        'params' => array(
			'app_name' => '部落战争',
			'app_url' => 'http://itunes.apple.com/app/id590329647',
			'contact' => '15482635@qq.com',
			'mac_id' => 'E0:F5:C6:5F:E6:78',
        ),
    ),
	'add_app_feedback' => array(
        'url' => '/api.php',
        'act' => 'add_app_feedback',
        'method' => 'post',
        'params' => array(
			'type' => '1',
			'content'  => '希望应用多一点',
			'contact' => '15482635@qq.com',
        ),	
    ),
    'add_app_log' => array(
        'url' => '/api.php',
        'act' => 'add_app_log',
        'method' => 'post',
        'params' => array(
			'log_id' => '1',
			'log_type' => '1',
			'log_msg' => 'eeeeeerrrrrr',
        ),
    ),
	'add_app_log_err' => array(
        'url' => '/api.php',
        'act' => 'add_app_log_err',
        'method' => 'post',
        'params' => array(
			'version_no' => '1.0',
			'module_name'  => 'module_name',
			'log_ip' => '211.200.10.53',
			'error_msg' => 'error_msg',
			'stack_msg' => 'stack_msg',
			'other' => 'other',
        ),	
    ),
	'get_spread_app' => array(
        'url' => '/api_spread.php',
        'act' => 'get_spread_app',
        'method' => 'get',
        'params' => array(
			'timestamp' => time(),
        ),	
    ),
	'get_spread_dsp' => array(
        'url' => '/api_spread.php',
        'act' => 'get_spread_dsp',
        'method' => 'get',
        'params' => array(
			'timestamp' => time(),
        ),	
    ),
	'get_app_dsp' => array(
        'url' => '/api.php',
        'act' => 'get_app_dsp',
        'method' => 'post',
        'params' => array(
			'dsp_ids' => "縗' or 1#",
        ),	
    ),
	'import_user' => array(
        'url' => '/api_spread.php',
        'act' => 'import_user',
        'method' => 'post',
        'params' => array(
			'user_name' => '',
			'user_pwd' => '',
        ),
    ),
	'pc_login' => array(
        'url' => '/pc_iframe_spread.php',
        'act' => 'pc_login',
        'method' => 'get',
        'params' => array(
			'account' => '汉字',
			'user_pwd' => md5('123456'),
			'auto_login' => '1',
        ),
    ),
	'user_spread_app_offline' => array(
        'url' => '/api_spread.php',
        'act' => 'user_spread_app_offline',
        'method' => 'post',
        'params' => array(
			'session_id' => '5e2czv6foLt5oshDArTEH/+BGIxzS46xQTAQ9xJuxQnvQKylpob7vAIHvlV/GNo',
			'data' => str_replace('"', '&#34;', '["eyJhcHBfaWQiOiI0NDUzNzUwOTciLCJibHVldG9vdGgiOiJiNDpmMDphYjo0Yzo3NDplOSIsImNsaWVudF92ZXJzaW9uIjoiMS4wLjAuMTAyMSIsImRldmljZV90eXBlIjoiaVBob25lIiwiZXhwYW5kIjoiRTU0QzQ4OUI1MEZFNUZGQjg3RjQ4RjBGNjYzQTc2OEUiLCJpbWVpIjoiOTkwMDAwOTg4NDg4NDc2IiwibWFjX2lkIjoiQjQ6RjA6QUI6NEM6NzQ6RTgiLCJtb2JpbGVfdGltZSI6IjEzNzUwOTQ1MjgiLCJwY190aW1lIjoiMTM3NTA5NDg5MSIsInNlcmlhbGlkIjoiRFgzSlA2Q1JEVEMxIiwidW5pcXVlaWQiOiI4OTZmOTJhMTdjOTVjYzMyZmFmYjkxZGE4YmY0ZjgyYTEzNmJiOWQ0IiwiaWRmYSI6ImRzMTVhNjRmNWQ2YTY2YzI2Z3Y2ZDRoOHlkNnNkc2EyYTMzdiIsImlvc192ZXJzaW9uIjoiNy4wIiwicGNfY2xpZW50X2lkIjoie0ZENDVEQVM1LUZEUzVENVNBLTRGRFM1NEMtRFM1RlY1fSJ9"]'),
        ),
    ),
	'user_spread_app' => array(
        'url' => '/api_spread.php',
        'act' => 'user_spread_app',
        'method' => 'get',
        'params' => array(
			'session_id' => '8802RWyzitY9M2zscwaxZb/YpQxwVji1JIihDIyAlscxUqbHWPcj7pNabCc11JA',
			'user_id' => '1030008',
			'app_id' => '445375097',
			'mac_id' => '33:s3:43:fd:f5',
			'bluetooth' => 'bluetooth',
			'serialid' => 'serialid',
			'uniqueid' => 'uniqueid',
			'imei' => 'imei',
			'expand' => 'expand',
			'device_type' => 'iPhone',
			'client_version' => '1.0',
			'idfa' => 'expand-SSAD5-15515',
			'ios_version' => '6.0.1',
			'pc_client_id' => '{asdas-cxzcxz-dsadsa-dsad}',
        ),
    ),
	'download_app' => array(
        'url' => '/api.php',
        'act' => 'download_app',
        'method' => 'get',
        'params' => array(
			'version_id' => 'com.meitu.mtxx',
			'log_id'  => '1',
			'type' => '2',
        ),
    ),
	'search_apps' => array(
        'url' => '/api.php',
        'act' => 'search_apps',
        'method' => 'get',
        'params' => array(
			'search_key' => '免费',
			'support'  => 'ipad',
			'page' => '1',
			'size' => '25',
			'log_id' => '1',
        ),	
    ),
	'get_daily_data' => array(
        'url' => '/api_spread.php',
        'act' => 'get_daily_data',
        'method' => 'post',
        'params' => array(
			'secret_key'  => 'iqiyi_1er6asW',
			'app_id'  => '393765873',
			'date'  => '2013-07-19',
			'page'  => '1',
			'token'  => 'f3d559c89f80411a9ab1c5f37c3f82e4',
        ),	
    ),
    'receive_daily_data' => array(
        'url' => '/api_spread.php',
        'act' => 'receive_daily_data',
        'method' => 'post',
        'params' => array(
            'secret_key'  => 'iqiyi_1er6asW',
			'date'  => '2013-07-19',
            'app_id'  => '393765873',
            'token'  => 'f3d559c89f80411a9ab1c5f37c3f82e4',
        ),
    ),
    'receive_notify_data' => array(
        'url' => '/api_spread.php',
        'act' => 'receive_notify_data',
        'method' => 'get',
        'params' => array(
            'secret_key'  => 'tg_bonreecom',
            'bundle_id'  => 'com.meitu.mtxx',
            'mac_id'  => 'C8:6F:1D:1D:C8:13',
			'check_time' => time(),
			'is_valid' => 1,
			'token' => 'a3a1038ecf710290fc72341840e90d2c',
        ),
    ),
    'receive_notify_data_taotaow' => array(
        'url' => '/api_spread.php',
        'act' => 'receive_notify_data_taotaow',
        'method' => 'get',
        'params' => array(
            'secret_key'  => '2013_taotaow_com',
            'app_id'  => '12352',
            'mac_id'  => 'C8:6F:1D:1D:C8:13',
			'check_time' => time(),
			'token' => '9e39fcc812d8e2d0e8be99e6ff5885db',
        ),
    ),
    'receive_notify_data_juzi_cn' => array(
        'url' => '/api_spread.php',
        'act' => 'receive_notify_data',
        'method' => 'post',
        'params' => array(
            'data'  => 'eyJwcmlkYXRhIjoiNDcyNjM4IiwiYXBwaWQiOiIxMDAwMDUxIiwiaW1laSI6IjMwMTBlNDFhYzBlZiIsIm1hYyI6IjMwMTBlNDFhYzBlZiIsInRyYWRlbm8iOiJCOEM0MkY2OTYwODEzQUY4NTZFOTVEQzc2RDJDRTEyQyJ9',
			'sign' => 'FC9756F76ADBB614CF9B9FF3E8120F9F',
        ),
    ),
    'receive_notify_data_wqmobile' => array(
        'url' => '/api_spread.php',
        'act' => 'receive_notify_data',
        'method' => 'get',
        'params' => array(
            'secret_key'  => 'wqmobile2013',
            'adid'  => '219',
            'mac_id'  => 'c86f1d1dc813',
            'download_id' => '442140',
            'token' => 'e86d3bd16bb691ffb8a26c9cf9d78840',
        ),
    ),
	'receive_notify_data_yunding' => array(
        'url' => '/api_spread.php',
        'act' => 'receive_notify_data',
        'method' => 'get',
        'params' => array(
            'secret_key'  => 'yunding_tg',
            'appid'  => '12352',
            'mac'  => 'C8:6F:1D:1D:C8:13',
			'idfa'  => 'C83-dsa5e-WDA3343',
        ),
    ),
	'net_install_processed' => array(
        'url' => '/log/net_install_processed.html',
        'act' => 'net_install_processed',
        'method' => 'get',
        'params' => array(
            'pc_client_id'  => 'CJK4D5SA546FD5S66SDA6GF3',
			'UniqueDeviceID' => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'ios_version' => '7.0.1',
            'device_type' => 'iphone',
            'status' => '1',
            'times' => '2',
            'token' => '1a1a4cb3f296dc577786699960f5671e',
			'total_time' => 1000,
        ),
    ),
	'ios_mobile_start' => array(
        'url' => '/log/ios_mobile_start.html',
        'act' => 'ios_mobile_start',
        'method' => 'get',
        'params' => array(
            'mac_id'  => 'C8:6F:1D:1D:C8:13',
			'idfa' => 'AAAA',
			'UniqueDeviceID' => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'SerialNumber' => '0e8be99e6ff5885db',
            'bluetooth' => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'imei' => '9e39fcc812d',
            'ios_version' => '7.0.1',
            'device_type' => 'iphone',
            'device_info' => 'iphone 5s',
            'kz_version' => '1.0.4',
            'token' => '9832b4f881704d3833159f3d40e6eafd',
			'pc_time' => time(),
			'device_time' => time(),
            'kz_version_id' => 'com.zs.aizhustore',
        ),
    ),
    'ios_mobile_install' => array(
        'url' => '/log/ios_mobile_install.html',
        'act' => 'ios_mobile_install',
        'method' => 'get',
        'params' => array(
            'version_id' => 'test.pps.tv',
            'mac_id'  => 'C8:6F:1D:1D:C8:13',
            'idfa' => 'AAAA',
            'UniqueDeviceID' => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'SerialNumber' => '0e8be99e6ff5885db',
            'bluetooth' => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'imei' => '9e39fcc812d',
            'ios_version' => '7.0.1',
            'device_type' => 'iphone',
            'device_info' => 'iphone 5s',
            'izhushou_version' => '1.0.4',
            'token' => 'd437e9d51d9ec68ffbf06d2c3155d7e8',
			'pc_time' => time(),
			'device_time' => time(),
            'izhushou_version_id' => 'com.zs.aizhustore',
        ),
    ),
    'ios_mobile_download' => array(
        'url' => '/log/ios_mobile_download.html',
        'act' => 'ios_mobile_download',
        'method' => 'get',
        'params' => array(
            'version_id' => 'test.pps.tv',
            'mac_id'  => 'C8:6F:1D:1D:C8:13',
            'idfa' => 'AAAA',
            'UniqueDeviceID' => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'SerialNumber' => '0e8be99e6ff5885db',
            'bluetooth' => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'imei' => '9e39fcc812d',
            'ios_version' => '7.0.1',
            'device_type' => 'iphone',
            'device_info' => 'iphone 5s',
            'izhushou_version' => '1.0.4',
            'token' => 'd437e9d51d9ec68ffbf06d2c3155d7e8',
			'pc_time' => time(),
			'device_time' => time(),
            'izhushou_version_id' => 'com.zs.aizhustore',
        ),
    ),
    'installer_install_app' => array(
        'url' => '/api_internal.php',
        'act' => 'installer_install_app',
        'method' => 'get',
        'params' => array(
            'pc_client_id' => 'pc_client_id',
            'UniqueDeviceID'  => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'device_type' => 'ipad',
            'ios_version' => '6.0.1',
            'version_id' => 'com.pps.test',
            'installer_version' => '1.0.2',
            'mac_id' => '20:f5:a2:15:15:12',
			'token' => '280be890755ba61e779b3d96e8bf69bb',
        ),
    ),
    'installer_click_recommended' => array(
        'url' => '/api_internal.php',
        'act' => 'installer_click_recommended',
        'method' => 'get',
        'params' => array(
            'pc_client_id' => 'pc_client_id',
            'UniqueDeviceID'  => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'device_type' => 'ipad',
            'ios_version' => '6.0.1',
            'version_id' => 'com.pps.test',
			'original_version_id' => 'com.pps.test',
            'installer_version' => '1.0.2',
            'mac_id' => '20:f5:a2:15:15:12',
			'token' => '101abb425c9a4ca8185766a3f4433d1a',
        ),
    ),
	'installer_start' => array(
        'url' => '/api_internal.php',
        'act' => 'installer_start',
        'method' => 'get',
        'params' => array(
            'pc_client_id' => 'pc_client_id',
            'UniqueDeviceID'  => '9e39fcc812d8e2d0e8be99e6ff5885db',
            'device_type' => 'ipad',
            'ios_version' => '6.0.1',
            'version_id' => 'com.pps.test',
            'installer_version' => '1.0.2',
            'mac_id' => '20:f5:a2:15:15:12',
			'token' => '0e70403a45adddca87c4cb24903b7cb7',
        ),
    ),

);

$act = isset($_GET['act']) ? $_GET['act'] : current(array_keys($arr));
$act_info = isset($arr[$act]) ? $arr[$act] : array();
?>
<html>
<head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8">
	<title><?php echo $act; ?> API调试工具</title>
    <style type="text/css">
        a {color: blue;}
    </style>
    <script type="text/javascript" src="http://yun.pt.pps.tv/project/commstyle/js/jquery.js"></script>
    <script type="text/javascript">
        eval(function(p,a,c,k,e,r){e=function(c){return(c<62?'':e(parseInt(c/62)))+((c=c%62)>35?String.fromCharCode(c+29):c.toString(36))};if('0'.replace(0,e)==0){while(c--)r[e(c)]=k[c];k=[function(e){return r[e]||e}];e=function(){return'([e-hk-pru-wzA-Z]|1\\w)'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('e W=0;e X="";e o=8;f Y(s){g K(z(B(s),s.p*o))}f b64_md5(s){g L(z(B(s),s.p*o))}f str_md5(s){g M(z(B(s),s.p*o))}f hex_hmac_md5(u,v){g K(H(u,v))}f b64_hmac_md5(u,v){g L(H(u,v))}f str_hmac_md5(u,v){g M(H(u,v))}f md5_vm_test(){g Y("abc")=="900150983cd24fb0d6963f7d28e17f72"}f z(x,F){x[F>>5]|=0x80<<((F)%C);x[(((F+64)>>>9)<<4)+14]=F;e a=1732584193;e b=-271733879;e c=-1732584194;e d=271733878;A(e i=0;i<x.p;i+=16){e Z=a;e 18=b;e 19=c;e 1a=d;a=h(a,b,c,d,x[i+0],7,-680876936);d=h(d,a,b,c,x[i+1],12,-389564586);c=h(c,d,a,b,x[i+2],17,606105819);b=h(b,c,d,a,x[i+3],22,-1044525330);a=h(a,b,c,d,x[i+4],7,-176418897);d=h(d,a,b,c,x[i+5],12,1200080426);c=h(c,d,a,b,x[i+6],17,-1473231341);b=h(b,c,d,a,x[i+7],22,-45705983);a=h(a,b,c,d,x[i+8],7,1770035416);d=h(d,a,b,c,x[i+9],12,-1958414417);c=h(c,d,a,b,x[i+10],17,-42063);b=h(b,c,d,a,x[i+11],22,-1990404162);a=h(a,b,c,d,x[i+12],7,1804603682);d=h(d,a,b,c,x[i+13],12,-40341101);c=h(c,d,a,b,x[i+14],17,-1502002290);b=h(b,c,d,a,x[i+15],22,1236535329);a=k(a,b,c,d,x[i+1],5,-165796510);d=k(d,a,b,c,x[i+6],9,-1069501632);c=k(c,d,a,b,x[i+11],14,643717713);b=k(b,c,d,a,x[i+0],20,-373897302);a=k(a,b,c,d,x[i+5],5,-701558691);d=k(d,a,b,c,x[i+10],9,38016083);c=k(c,d,a,b,x[i+15],14,-660478335);b=k(b,c,d,a,x[i+4],20,-405537848);a=k(a,b,c,d,x[i+9],5,568446438);d=k(d,a,b,c,x[i+14],9,-1019803690);c=k(c,d,a,b,x[i+3],14,-187363961);b=k(b,c,d,a,x[i+8],20,1163531501);a=k(a,b,c,d,x[i+13],5,-1444681467);d=k(d,a,b,c,x[i+2],9,-51403784);c=k(c,d,a,b,x[i+7],14,1735328473);b=k(b,c,d,a,x[i+12],20,-1926607734);a=l(a,b,c,d,x[i+5],4,-378558);d=l(d,a,b,c,x[i+8],11,-2022574463);c=l(c,d,a,b,x[i+11],16,1839030562);b=l(b,c,d,a,x[i+14],23,-35309556);a=l(a,b,c,d,x[i+1],4,-1530992060);d=l(d,a,b,c,x[i+4],11,1272893353);c=l(c,d,a,b,x[i+7],16,-155497632);b=l(b,c,d,a,x[i+10],23,-1094730640);a=l(a,b,c,d,x[i+13],4,681279174);d=l(d,a,b,c,x[i+0],11,-358537222);c=l(c,d,a,b,x[i+3],16,-722521979);b=l(b,c,d,a,x[i+6],23,76029189);a=l(a,b,c,d,x[i+9],4,-640364487);d=l(d,a,b,c,x[i+12],11,-421815835);c=l(c,d,a,b,x[i+15],16,530742520);b=l(b,c,d,a,x[i+2],23,-995338651);a=m(a,b,c,d,x[i+0],6,-198630844);d=m(d,a,b,c,x[i+7],10,1126891415);c=m(c,d,a,b,x[i+14],15,-1416354905);b=m(b,c,d,a,x[i+5],21,-57434055);a=m(a,b,c,d,x[i+12],6,1700485571);d=m(d,a,b,c,x[i+3],10,-1894986606);c=m(c,d,a,b,x[i+10],15,-1051523);b=m(b,c,d,a,x[i+1],21,-2054922799);a=m(a,b,c,d,x[i+8],6,1873313359);d=m(d,a,b,c,x[i+15],10,-30611744);c=m(c,d,a,b,x[i+6],15,-1560198380);b=m(b,c,d,a,x[i+13],21,1309151649);a=m(a,b,c,d,x[i+4],6,-145523070);d=m(d,a,b,c,x[i+11],10,-1120210379);c=m(c,d,a,b,x[i+2],15,718787259);b=m(b,c,d,a,x[i+9],21,-343485551);a=w(a,Z);b=w(b,18);c=w(c,19);d=w(d,1a)}g I(a,b,c,d)}f G(q,a,b,x,s,t){g w(1b(w(w(a,q),w(x,t)),s),b)}f h(a,b,c,d,x,s,t){g G((b&c)|((~b)&d),a,b,x,s,t)}f k(a,b,c,d,x,s,t){g G((b&d)|(c&(~d)),a,b,x,s,t)}f l(a,b,c,d,x,s,t){g G(b^c^d,a,b,x,s,t)}f m(a,b,c,d,x,s,t){g G(c^(b|(~d)),a,b,x,s,t)}f H(u,v){e D=B(u);if(D.p>16)D=z(D,u.p*o);e N=I(16),O=I(16);A(e i=0;i<16;i++){N[i]=D[i]^0x36363636;O[i]=D[i]^0x5C5C5C5C}e 1d=z(N.1e(B(v)),1f+v.p*o);g z(O.1e(1d),1f+128)}f w(x,y){e P=(x&Q)+(y&Q);e 1g=(x>>16)+(y>>16)+(P>>16);g(1g<<16)|(P&Q)}f 1b(R,S){g(R<<S)|(R>>>(C-S))}f B(n){e E=I();e J=(1<<o)-1;A(e i=0;i<n.p*o;i+=o)E[i>>5]|=(n.charCodeAt(i/o)&J)<<(i%C);g E}f M(E){e n="";e J=(1<<o)-1;A(e i=0;i<E.p*C;i+=o)n+=String.fromCharCode((E[i>>5]>>>(i%C))&J);g n}f K(r){e T=W?"0123456789ABCDEF":"0123456789abcdef";e n="";A(e i=0;i<r.p*4;i++){n+=T.U((r[i>>2]>>((i%4)*8+4))&1h)+T.U((r[i>>2]>>((i%4)*8))&1h)}g n}f L(r){e 1i="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";e n="";A(e i=0;i<r.p*4;i+=3){e 1j=(((r[i>>2]>>8*(i%4))&V)<<16)|(((r[i+1>>2]>>8*((i+1)%4))&V)<<8)|((r[i+2>>2]>>8*((i+2)%4))&V);A(e j=0;j<4;j++){if(i*8+j*6>r.p*C)n+=X;else n+=1i.U((1j>>6*(3-j))&0x3F)}}g n}',[],82,'||||||||||||||var|function|return|md5_ff|||md5_gg|md5_hh|md5_ii|str|chrsz|length||binarray|||key|data|safe_add|||core_md5|for|str2binl|32|bkey|bin|len|md5_cmn|core_hmac_md5|Array|mask|binl2hex|binl2b64|binl2str|ipad|opad|lsw|0xFFFF|num|cnt|hex_tab|charAt|0xFF|hexcase|b64pad|hex_md5|olda|||||||||oldb|oldc|oldd|bit_rol||hash|concat|512|msw|0xF|tab|triplet'.split('|'),0,{}))
    </script>
    <script type="text/javascript">
        function chkForm() {
            $('#_form').attr('action', $('#_url').val());
            $('#_form').attr('target', '_iframe');
            $('#_form').submit();
        }
        function chkForm2() {
            $('#_form').attr('action', $('#_url').val());
            $('#_form').attr('target', '_blank');
            $('#_form').submit();
        }
        function md5_haha() {
            var text = $('#_md5').val();
            $('#_form').attr('target', '_iframe');
            $('#_token').val(hex_md5(text + 'app_pp$tv@2013'));
            return false;
        }
		function md5_haha2() {
            var text = $('#_md52').val();
            $('#_form').attr('target', '_iframe');
            $('#_sign').val(hex_md5(text + 'user2history_cloud&record'));
            return false;
        }
        function official() {
            if($('#_checkbox').attr('checked')) {
                $('#_url').val($('#_url').val().replace('http://api.dxslaw.com', 'http://api.dxslaw.com'));
            } else {
                $('#_url').val($('#_url').val().replace('http://api.dxslaw.com', 'http://api.dxslaw.com'));
            }
        }
    </script>
</head>
<body bgcolor="#CCE8CF">

<?php foreach (array_keys($arr) as $act) { ?>
&nbsp;
<a style="width: 250px; display: block; float: left;" href="?act=<?php echo $act; ?>"><?php echo $act; ?></a>
<?php } ?>

<div style="clear: both; height: 15px;"></div>

<table width="100%"><tr><td width="50%" valign="top">

<?php if ($act_info['method'] == 'get') { ?>
<form id="_form" action="" method="get" target="_iframe">
<?php } else { ?>
<form id="_form" action="" method="post" enctype="multipart/form-data" target="_iframe">
<?php } ?>
    <table>
        <tr>
            <td>接口地址</td>
            <td colspan="2"><input type="text" id="_url" size="65" name="url"
                       value="http://api.dxslaw.com<?php echo $act_info['url']; ?>?act=<?php echo $act_info['act']; ?>"/>
                <input type="checkbox" name="checkbox" id="_checkbox" onclick="official()" />正式环境
            </td>
        </tr>
        <tr>
            <td>method</td>
            <td colspan="2"><input type="text" id="_method" name="method" value="<?php echo $act_info['method']; ?>"/> <input type="file" name="result" value="" /></td>
        </tr>
        <tr>
            <td>act</td>
            <td colspan="2"><input size="35" type="text" name="act" value="<?php echo $act_info['act']; ?>"/></td>
        </tr>
		<tr>
            <td>token</td>
            <td><input type="text" size="35" name="token" id="_token" value="7b31922195dfc119c055ea0b3e15e66f"/></td>
            <td><input type="test" name="md5" value="" id="_md5"/><a href="javascript:;" onclick="md5_haha()">md5</a></td>
        </tr>
        <?php if (is_array($act_info['params'])) {
        foreach ($act_info['params'] as $k => $v) {
            ?>
            <tr>
                <td><?php echo $k; ?></td>
                <td colspan="2"><input type="text" name="<?php echo $k; ?>" value="<?php echo $v; ?>"/></td>
            </tr>
            <?php
        }
    } ?>
    </table>
    <button href="javascript:;" onclick="chkForm()">===提交===</button>
    &nbsp;
    <button href="javascript:;" onclick="chkForm2()">新窗口提交</button>
</form>
<div>常用测试人uid：周炳宇（186834546）、谢小件（233023638）、xing393939（249229547）、scdddk（258582163）、小舒（126153487）、刘成蹊（249816815）、judy^_^（147370182）、吴乐宝（134075837）</div>

</td><td width="50%">
<iframe name="_iframe" id="_iframe" width="100%" height="400" frameborder="0" src="" border="0" marginheight="0"
        marginwidth="0" allowtransparency="true" style="border: 1px dashed gray;"></iframe>
</td></tr></table>

</body>
</html>
